package com.rbac.entity.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * jwt响应数据
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class JwtResponse {
    /**
     * token 字段
     */
    private String token;

    /**
     * token类型
     */
    private String tokenType = "Bearer";

    /**
     * 刷新token
     */
    private String refreshToken;

    /**
     * 过期时间
     */
    private Long expiration;

    public JwtResponse(String token,Long expiration) {
        this.token = token;
        this.expiration=expiration;
    }
}
